<#macro top index>
<#--<script baseUrl="${basePath}" src="${basePath}/js/user.login.js"></script>-->

<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="z-index: 101;height: 41px; background-color: #337ab7">
    <div class="container" style="padding-left: 0px; padding-right: 0px;">
        <div id="top-front">
            <!--向左对齐-->
            <ul class="nav navbar-nav navbar-left">
                <li class="dropdown">
                    <a href="#" style="font-weight: bolder" class="dropdown-toggle" data-toggle="dropdown">
                        个人中心
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#">个人资料</a></li>
                        <li class="divider"></li>
    <@shiro.hasPermission name='user:allotRole'>
                        <li><a href="#">资料修改</a></li>
                        <li><a href="#">密码修改</a></li>
                        <li class="divider"></li>
                        <li><a href="#">我的权限</a></li>
    </@shiro.hasPermission>
                    </ul>
                </li>
            </ul>
    <@shiro.hasPermission name='user:allotRole'>
            <ul class="nav navbar-nav navbar-left">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        用户中心
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#">用户列表</a></li>
                        <li class="divider"></li>
                        <li><a href="#">在线用户</a></li>
                    </ul>
                </li>
            </ul>
    </@shiro.hasPermission>
            <ul class="nav navbar-nav navbar-left">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        商户处理
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="${basePath}/busInfo/index?pageSize=10&pageNo=1">商户列表</a></li>
                        <li class="divider"></li>
                        <li><a href="#">商户验收</a></li>
                    </ul>
                </li>
            </ul>
    <@shiro.hasPermission name='user:allotRole'>
            <ul class="nav navbar-nav navbar-left">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        权限管理
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="${basePath}/user/index2?pageSize=3&pageNo=1">用户列表</a></li>

                        <li><a href="${basePath}/role/index?pageSize=3&pageNo=1">角色列表</a></li>

                        <@shiro.hasPermission name='user:allotRole'>
                            <li><a href="${basePath}/user/allotRoles/index?pageSize=3&pageNo=1">角色分配</a></li>
                        </@shiro.hasPermission>
                        <li class="divider"></li>
                        <li><a href="${basePath}/permission/index">权限列表</a></li>

                        <@shiro.hasPermission name='user:allotRole'>
                            <li><a href="${basePath}/role/allotPermission/index">权限分配</a></li>
                        </@shiro.hasPermission>
                    </ul>
                </li>
            </ul>
    </@shiro.hasPermission>
    <@shiro.hasPermission name='user:allotRole'>
            <!--向右对齐-->
            <#--<p class="navbar-text navbar-right col-md-2"></p>-->
            <ul class="nav navbar-nav pull-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        用户名 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#">个人资料</a></li>
                        <li><a href="#">我的权限</a></li>
                        <li class="divider"></li>
                        <li><a href="#">退出</a></li>
                    </ul>
                </li>
            </ul>
    </@shiro.hasPermission>
        </div>
    </div>
</nav>
</#macro>
